﻿#region Copyright
/* © 2008 George Tsiokos, licensed under the Microsoft Reciprocal License (Ms-RL) */
#endregion
using System.Net;
using System.Threading;
using Comet.Diagnostics;

namespace Comet.Net {
    internal sealed class CometAsyncState {

		#region Fields (4) 

        private HttpListenerContext _context;
        private readonly CometNetHandler _handler;
        private readonly HttpListener _listener;

		#endregion Fields 

		#region Constructors (1) 

        public CometAsyncState (CometNetHandler handler, HttpListener listener) {
            _handler = handler;
            _listener = listener;
        }

		#endregion Constructors 

		#region Properties (4) 

        public HttpListenerContext Context {
            get {
                return _context;
            }
            set {
                _context = value;
            }
        }

        public CometNetHandler Handler {
            get {
                return _handler;
            }
        }

        public HttpListener Listener {
            get {
                return _listener;
            }
        }

		#endregion Properties 

    }
}